//
//  ZDBIncomeTableViewCell.m
//  ZDB
//
//  Created by Kk on 2020/3/19.
//  Copyright © 2020 ZDB. All rights reserved.
//

#import "ZDBIncomeTableViewCell.h"

@implementation ZDBIncomeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellAccessoryNone;
    [self setSeparatorInset:UIEdgeInsetsMake(0, 0, 0, 0)];
    self.backgroundColor = WHITECOLOR;
 
}
- (void)setIncome:(Income *)income
{
    _timeLab.text = income.createTime;
    if (income.type.integerValue==1) {
        _incomeLab.text = kFormat(@"+%@", income.money);
         _incomeLab.textColor = MAINTITLECOLOR;
    }else
    {
        _incomeLab.text = kFormat(@"-%@", income.money);
        _incomeLab.textColor = MAINCOLOR;
    }
    _tastName.text = income.remarks;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
